package com.jine.boot4.country.service;

import com.jine.boot4.country.mapper.CountryMapper;
import com.jine.boot4.country.model.Country;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CountryService {

    @Autowired
    private CountryMapper countryMapper;

    public List<Country> findAll(){
        return this.countryMapper.findAll();
    }


}
